package ui;
import javax.swing.*;
import java.awt.*;

public class LayerNext extends Layer {

    public LayerNext(int x, int y, int w, int h) {
        super(x, y, w, h);
    }

    @Override
    public void paint(Graphics g){
        this.createWindow(g);
        //如果是开始状态才绘制下一块
        if(this.dto.isStart()){
            this.drawImageAtcenter(Img.NEXT_ACT[this.dto.getNext()],g);
        }
    }
}
